package com.netease.pris.activity;

import android.text.TextUtils;
import com.netease.pris.activity.a.s;
import com.netease.pris.activity.view.FlingGallery;
import com.netease.pris.app.PrisApp;
import com.netease.pris.atom.ad;
import com.netease.pris.atom.g;
import com.netease.pris.b;
import com.netease.pris.protocol.d;
import java.util.LinkedList;

class cd extends b
{
  cd(ArticleGalleryActivity paramArticleGalleryActivity)
  {
  }

  public void a(int paramInt1, int paramInt2, String paramString, boolean paramBoolean)
  {
    if (ArticleGalleryActivity.x(this.a).contains(new Integer(paramInt1)))
    {
      ArticleGalleryActivity.x(this.a).remove(new Integer(paramInt1));
      ArticleGalleryActivity.a(this.a, false);
      dc.a(ArticleGalleryActivity.a(this.a), paramInt2);
    }
  }

  public void a(int paramInt, d paramd, boolean paramBoolean)
  {
    Integer localInteger = Integer.valueOf(paramInt);
    String str1;
    if (ArticleGalleryActivity.x(this.a).contains(localInteger))
    {
      ArticleGalleryActivity.x(this.a).remove(localInteger);
      ArticleGalleryActivity.b(this.a, paramd);
      str1 = ArticleGalleryActivity.s(this.a);
      ArticleGalleryActivity.a(this.a, null);
      ArticleGalleryActivity.a(this.a, false);
      if (paramd.g != null)
        break label364;
    }
    while (true)
    {
      return;
      if ((ArticleGalleryActivity.o(this.a) != null) && (ArticleGalleryActivity.o(this.a).h == null))
      {
        ArticleGalleryActivity.a(this.a, PrisApp.a().p());
        if ((ArticleGalleryActivity.o(this.a) != null) && (ArticleGalleryActivity.o(this.a).h != null))
          ArticleGalleryActivity.d(this.a).a(new s(ArticleGalleryActivity.a(this.a), ArticleGalleryActivity.p(this.a), ArticleGalleryActivity.q(this.a), ArticleGalleryActivity.r(this.a), ArticleGalleryActivity.o(this.a), ArticleGalleryActivity.s(this.a), false), ArticleGalleryActivity.t(this.a));
      }
      if ((ArticleGalleryActivity.o(this.a) == null) || (ArticleGalleryActivity.o(this.a).h == null) || (ArticleGalleryActivity.o(this.a).h.size() <= 0) || (!paramBoolean))
        continue;
      if (ArticleGalleryActivity.t(this.a) >= ArticleGalleryActivity.o(this.a).h.size())
        ArticleGalleryActivity.b(this.a, -1 + ArticleGalleryActivity.o(this.a).h.size());
      ArticleGalleryActivity.d(this.a).a(new s(ArticleGalleryActivity.a(this.a), ArticleGalleryActivity.p(this.a), ArticleGalleryActivity.q(this.a), ArticleGalleryActivity.r(this.a), ArticleGalleryActivity.o(this.a), ArticleGalleryActivity.s(this.a), false), ArticleGalleryActivity.t(this.a));
      continue;
      label364: String str2 = paramd.g.b(g.i);
      if ((TextUtils.isEmpty(str2)) || (str2.equals(str1)))
        continue;
      ArticleGalleryActivity.a(this.a, str2);
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.cd
 * JD-Core Version:    0.6.0
 */